using Quiki.ExpressionParsers;

namespace Quiki.ElementFormatters
{
    public abstract class ElementFormatterBase : IElementFormatter
    {
        public abstract bool FormatBegin(WikiTextElement element, HtmlFormatterContext context);

        public virtual void FormatText(WikiTextElement element, HtmlFormatterContext context)
        {
            context.Writer.Write (element.Text);
        }

        public virtual void FormatEnd(WikiTextElement element, HtmlFormatterContext context)
        {
        }
    }
}